  <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.css">
<title>ViewSale</title>
</head>
<body>

		
		<nav class="navbar navbar-default navbar-fixed-top " role="navigation">
		<div class="container-fluid">
		<div class="navbar-header">
		<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      </div>	
   
   <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
      <li><a href="UserPanel.jsp">Home</a></li>
      <li><a href="LogOut">LogOut</a></li>
      </ul></div>
		</nav><br><br><br>
		
    		
<style>
	.navbar-header {
    float: left;
    padding: 5px;
    text-align: center;
    width: 95%;
}
.navbar-brand {float:none;}	
</style>
<table class="table table-striped">
	<thead>

 <tr>
 <th>Date</th>
 <th>Weight</th>
 <th>Price</th>
 <th>Agency Name</th>
 <th>Rice Mill Name</th>
 <th>Stock Name</th>

 </tr>
 </thead>
 <%Iterator itr;%>
 <% List data = (List)request.getAttribute("data");
 for (itr=data.iterator(); itr.hasNext(); )
 {
 int id = (Integer) itr.next();
 %>
 <tbody>
 <tr>
 <td><%=itr.next()%></td>
 <td><%=itr.next()%></td>
 <td><%=itr.next()%></td>
 <td><%=itr.next()%></td>
 <td><%=itr.next()%></td>
 <td><%=itr.next()%></td>
 <td>
<a href ="DeleteSale?deleteid=<%=id%>">Delete</a>
 </td>
 </tr>
 </tbody>
 <%}%>
 </table>

</body>
</html>